package com.esri.core.internal.tasks.ags;

import com.esri.core.internal.tasks.TaskListener;
import com.esri.core.io.UserCredentials;
import org.codehaus.jackson.JsonParser;

/* loaded from: classes.dex */
public class x extends com.esri.core.internal.tasks.d<String> {
    private static final long serialVersionUID = 1;

    public x(w wVar, String str, UserCredentials userCredentials, TaskListener<String> taskListener) {
        super(wVar, str, userCredentials, taskListener);
    }

    public x(String str, UserCredentials userCredentials) {
        super(null, str, userCredentials);
    }

    public x(w wVar, String str, UserCredentials userCredentials) {
        super(wVar, str, userCredentials);
    }

    @Override // com.esri.core.internal.tasks.a
    /* renamed from: a */
    public String execute() throws Exception {
        JsonParser a = com.esri.core.internal.io.handler.h.a(this.serviceURL, this.actionInput != null ? this.actionInput.generateRequestParams() : null, getServiceCredentials());
        String jsonNode = com.esri.core.internal.util.d.b(a).toString();
        a.close();
        return jsonNode;
    }
}
